package com.lfs.market.model.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lfs.market.model.entity.ChatMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ChatListVo {

    @ApiModelProperty("")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty("")
    private String fromUserId;

    @ApiModelProperty("")
    private String toUserId;

    @ApiModelProperty("")
    private String fromUserNick;
    private String fromUserAvatar;
    private String productId;
    private String productImage;
    @ApiModelProperty("")
    private String toUserNick;
    private String toUserAvatar;
    @ApiModelProperty(value = "", example = "0")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "", example = "0")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private ChatMessage chatMessage;
    private Integer noReadCount;
}
